We discuss several ways of illustrating fundamental concepts in statisticaland thermal physics by considering various models and algorithms. We emphasizethe importance of replacing students' incomplete mental images by models thatare physically accurate. In some cases it is sufficient to discuss the resultsof an algorithm or the behavior of a model rather than having students write aprogram.
展开▼